<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="author" content="Simon Claeye">
		<meta name="description" content="Mapping tool for geological outcrops">
		<meta name="keywords" content="geology,social,trip, excursion, outcrop, location, geological, map, mapping, tool">
		<link href="/static_media/css/base.css" rel="stylesheet" type="text/css" >
		{%block style %} {%endblock style %}

		<title>
			Geologise - {{ title }}
		</title>
		{%block script %} {%endblock script %}
	</head>

	<body onLoad="{{ onLoad }}">
		<div class="container">
			<div class="header">
				<div class="headerContent">
					<div id="logo">
						<a href="/home/"> Geologise</a>
					</div>
					<div id="searchBar">
						{% if hideMenuSearchBar %}
						{% else %}
						<form action="/search/" method="get">
							{% csrf_token %}
							<div class="fieldError"> {{ searchForm.non_field_errors }} </div>
							<label for="id_q" class="fieldHeading" ></label>
							<div class="fieldError"> {{ searchForm.q.errors }} </div>
							<div id="searchFieldWrapper"> {{ searchForm.q }} </div>
							<input type="submit" value="  search  " id="searchButton" class="button"/>
						</form>
						{%endif%}
					</div>
					<div id="menu">
						<a href="/home/">Home</a>
						{% if user.is_authenticated %}
							<a href="/user/">Account</a>
							Settings
							<a href="/logout/">Logout</a>
						{%endif%}
					</div>
				</div>
			</div>
			<div class="content">
			{% block content %} 
			{% endblock content %}
			</div>
		</div>
	</body>
</html>
